﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChoicePers_Search.aspx.cs" Inherits="Common_ChoicePers_Search" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <link href="../CSS/css.CSS" type="text/css" rel="stylesheet" />
    <script language="javascript" type="text/javascript">
       function SearchPersInfo_CK()
       {
          var sPersName = form1.PersName.value;
          var sPersCode = form1.PersCode.value;
          var sOrgID   = form1.HChoiceID_1.value;
          var sOrgName = form1.ChoiceName_1.value; 
          if(sPersName == "" && sPersCode == "" && sOrgID == "")
          {
              alert("请输入查询条件");
          }
          else
          {
              eval("parent.RightFrame.location.href = \"ChoicePers_List.aspx?OpType=1&PersName="+sPersName+"&PersCode="+sPersCode+"&OrgID="+sOrgID+"&OrgName="+sOrgName+"\";");
          }
       }
       
        //选择组织信息
      var sChoiceID;               //所在赋值的关键字
      var ChoiceNameInfo;          //选择的名称集合
      var ChoiceIDInfo;            //选择的ID集合
      var iChoicePoNumber1 =1;     //0表示任意多,其它的正整数为可以选择的最大个数.不可以为负数
      function GetMyOrgTree(obj)
      {
         var sOrgIDCol = form1.HOrgIDCol.value;
         var sFeatures = "dialogHeight:600px;dialogWidth:400px;resizeable:no;help:no;status:no";
         var obj = showModalDialog("../SysManage/ChoiceOrgInfo.aspx?ChoiceID="+obj+"&OrgType=2&OrgIDCol="+sOrgIDCol,window,sFeatures);
         if(obj != undefined)
         {
             sChoiceID = obj.sChoiceID;
             ChoiceNameInfo = obj.ChoiceNameInfo;
             ChoiceIDInfo=obj.ChoiceIDInfo;
             eval("form1.ChoiceName_"+sChoiceID+".value="+ChoiceNameInfo+";");
             eval("form1.HChoiceID_"+sChoiceID+".value="+ChoiceIDInfo+";");
             eval("form1.ChoiceName_"+sChoiceID+".blur()");
         }
      }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <input type="hidden" id="HOrgIDCol" runat ="server"  />
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table">
      <tr bgcolor="C3DCF6" style ="height :30px;"> 
        <td style ="width :10%;" align ="right" >名称：</td>
        <td style ="width :15%;"><asp:TextBox ID="PersName" runat="server" Width="100" MaxLength ="20"></asp:TextBox></td>
        <td style ="width :10%;" align ="right">工号：</td>
        <td style ="width :15%;"><asp:TextBox ID="PersCode" runat="server" Width="100%" MaxLength ="18" ></asp:TextBox></td>
        <td style ="width :10%;" align ="right" onclick ="GetMyOrgTree(1)">所属组织：</td>
        <td style ="width :15%;">
           <asp:TextBox ID="ChoiceName_1" runat ="server" onclick ="GetMyOrgTree(1)" TabIndex ="1" Width="100px" ></asp:TextBox>
           <input type="hidden" id="HChoiceID_1" runat ="server" />
        </td>
        <td><input id="SearchPersInfo" name="Query" type="submit" class="button02" value="查询" onclick ="SearchPersInfo_CK()" /></td>
      </tr>
    </table>
    </form>
</body>
</html>
